import { API } from '@/services/model/baseModel';
import config from '@/utils/config';
import { request } from '@/utils/http';

/**
 * 热搜数据
 * @returns
 */
const hotWordsData = () => {
  return request.post<API<HotWordsModel>>(config.url.hot_words, {});
};

/**
 * 搜索
 * @returns
 */
const searchData = () => {
  return request.post<API>(config.url.search, {});
};
export { hotWordsData, searchData };
